package com.mjk.service.info;

import org.springframework.stereotype.Service;

import com.mjk.common.biz.BaseBiz;
import com.mjk.mapper.info.UserMapper;
import com.mjk.model.info.User;

@Service
public class UserService extends BaseBiz<UserMapper, User>{

	 /**
     * 根据用户名获取用户信息
     * @param username
     * @return
     */
    public User getUserByUsername(String username){
        User user = new User();
        user.setUsername(username);
        return mapper.selectOne(user);
    }
}
